<template>
  <!-- 顶部 -->
  <AppTopnav/>
  <!-- 头部 -->
  <AppHeader/>
  <!-- 吸顶头部 -->
  <AppHeaderSticky/>
  <!-- 主体 -->
  <div class="main">
    <router-view/>
  </div>
  <!-- 底部 -->
  <AppFooter/>
</template>

<script>
import AppTopnav from '@/components/app-topnav.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'
export default {
  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  setup () {
    const store = useStore()
    store.dispatch('category/getAllList')
  }
}
</script>

<style lang="less" scoped>
.main {
  min-height: 200px;
}
</style>
